﻿using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using Sqo;

namespace EDMD
{

    /// [Generated Jan 31 2011]
    [Serializable()]
    public partial class i_Field_Type : Utils, ISqoDataObject
    {

        #region "private fields"

        private int _Field_Type_ID;
        private string _FieldType;
        private string _GUID;

        #endregion

        #region "public properties"

        public int Field_Type_ID
        {
            get { return _Field_Type_ID; }
            set { _Field_Type_ID = value; }
        }
        public string FieldType
        {
            get { return _FieldType; }
            set { _FieldType = value; }
        }
        public string GUID
        {
            get { return _GUID; }
            set { _GUID = value; }
        }

        #endregion


        #region "ISqoDataObject"
        object ISqoDataObject.GetValue(System.Reflection.FieldInfo field) { return field.GetValue(this); }
        void ISqoDataObject.SetValue(System.Reflection.FieldInfo field, object value) { field.SetValue(this, value); }

        int ISqoDataObject.OID { get { return Field_Type_ID; } set { } }
        #endregion
    }


    public partial class s_Field_Type : i_Field_Type
    {
        #region "MAPPER"
        public static EDMD.i_Field_Type Convert(Field_Type od_Field_Type)
        {
            return new EDMD.i_Field_Type()
            {

                Field_Type_ID = IsNull(od_Field_Type.Field_Type_ID),
                FieldType = IsNull(od_Field_Type.FieldType),
                GUID = IsNull(od_Field_Type.GUID),

            };
        }
        #endregion
    }
}

